<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h3>学生分数列表</h3>
	<h3>欢迎${sessionScope.USER_IN_SESSION.name}老师,请选择以下操作:</h3>
	<form action="/s/exit" method="post">
		<input type="submit" name="exit" value="退出系统">
	</form>
	<form action="/s/scores/welcome" method="post">
		<input type="submit" name="exit" value="返回欢迎页面"><br>
	</form>
	<a href="#">新增成绩</a>+
	<table cellpadding="5" cellspacing="1" width="600pixels" border="2">
		<tr style="background-color: olive;">
			<th>id</th>
			<th>姓名</th>
			<th>班级</th>
			<th>语文</th>
			<th>数学</th>
			<th>英语</th>
			<th>操作</th>
		</tr>
		
		<c:forEach items="${scores}" var="score" varStatus="vs">
		<tr style="background-color: ${vs.count%2==0?'Lavender':''};">
			<td align="center">${pageScope.score.id}</td>
			<td align="center">${pageScope.score.name}</td>
			<td align="center">${pageScope.score.classId}</td>
			<td align="center">${pageScope.score.chineseScore}</td>
			<td align="center">${pageScope.score.mathScore}</td>
			<td align="center">${pageScope.score.englishScore}</td>
			<td align="center"><a href="#">编辑</a>|<a href="#">删除</a></td>
		</tr>
		</c:forEach>
	</table>
</body>
</html>